﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EmpSubmit.aspx.cs" Inherits="lcs.Web.workPlan.EmpSubmit" ValidateRequest="false" %>

<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>工作计划填写</title>
    <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="../ckeditor/ckeditor.js"></script>

    <style type="text/css">
        .auto-style1 {
            font-size: 14px;
        }

        .auto-style2 {
            text-align: center;
            margin-top: 10px;
            margin-bottom: 10px;
        }

        .marginTB {
            margin-bottom: 10px;
            margin-top: 10px;
        }
        .auto-style3 {
            width: 100%;
        }
    </style>

</head>
<body style="font-size: 12px;">
    <form id="form1" runat="server">
        <div class="auto-style2">
            <strong><span class="auto-style1">工作计划提报</span></strong>
        </div>

        <div class="marginTB">
            <table style="width: 100%">
                <tr>
                    <td style="width: 120px;">计划类型：</td>
                    <td>
                        <asp:DropDownList ID="ddl_type" runat="server">
                            <asp:ListItem>周计划</asp:ListItem>
                            <asp:ListItem>月计划</asp:ListItem>
                            <asp:ListItem>年计划</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>

                <tr>
                    <td style="width: 120px;">计划标题：</td>
                    <td>
                        <asp:TextBox ID="txt_title" runat="server" Width="386px"></asp:TextBox>
                        <asp:Button ID="btn_scjh" runat="server" OnClick="btn_scjh_Click" Text="生成工作计划" />
                        <asp:Label ID="lbl_workplan_id" runat="server" Visible="False"></asp:Label>
                    </td>
                </tr>

                <tr>
                    <td style="width: 120px;">&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
            </table>
            <%--<CKEditor:CKEditorControl ID="txtncontent" BasePath="~/ckeditor" runat="server"></CKEditor:CKEditorControl>--%>
        </div>
        <div class="marginTB">
            <asp:Panel ID="Panel1" runat="server" Visible ="false">
                <table cellpadding="0" cellspacing="0" class="auto-style3">
                    <tr>
                        <td style="width:120px; text-align:right">序号：</td>
                        <td style="text-align:left">
                            <asp:TextBox ID="txt_xuhao" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                   
                    <tr>
                        <td style="width:120px; text-align:right">内容：</td>
                        <td style="text-align:left">
                            <asp:TextBox ID="txt_neirong" runat="server" Height="123px" TextMode="MultiLine" Width="513px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="width:120px; text-align:right">完成时间：</td>
                        <td style="text-align:left">
                            <asp:TextBox ID="txt_wcsj" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"></asp:TextBox>
                        </td>
                    </tr>
                   
                    <tr>
                        <td style="width:120px; text-align:right;height:20px;">&nbsp;</td>
                        <td style="text-align:left">&nbsp;</td>
                    </tr>
                   
                    <tr>
                        <td style="width:120px; text-align:right">&nbsp;</td>
                        <td style="text-align:left">
                            <asp:Button ID="btn_tjjh" runat="server" OnClick="btn_tjjh_Click" Text="添加计划内容" Visible="False" />
                        </td>
                    </tr>
                    <tr>
                        <td style="width:120px; text-align:right;height:20px;">&nbsp;</td>
                        <td style="text-align:left">&nbsp;</td>
                    </tr>
                   
                    <tr>
                        <td colspan="2" style="text-align:center;">
                            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="100%" OnRowCommand="GridView1_RowCommand">
                                <Columns>
                                    <asp:TemplateField HeaderText="操作">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="lbn_del" runat="server" CommandArgument='<%# Bind("workplan_detail_id") %>' CommandName="lbn_del">删除</asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="orderId" HeaderText="序号" />
                                    <asp:BoundField DataField="contentStr" HeaderText="内容" />
                                    <asp:BoundField DataField="finishTime" HeaderText="完成时间" />
                                </Columns>
                            </asp:GridView>
                        </td>
                    </tr>
                   
                </table>

            </asp:Panel>
        </div>
        <div class="auto-style2">
            <asp:Button ID="btn_save" runat="server" Text="提交审核" OnClick="btn_save_Click" />
        </div>
    </form>
</body>
</html>
